﻿namespace Zhp.Api.Attributes
{
    [AttributeUsage(AttributeTargets.Method, AllowMultiple = false)]
    public class SeedButtonAttribute : Attribute
    {
        /// <summary>
        /// 
        /// </summary>
        /// <param name="name">按钮名称</param>
        /// <param name="list">列表名称</param>
        /// <param name="menu">菜单名称</param>
        /// <param name="group">分组</param>
        /// <param name="icon"></param>
        public SeedButtonAttribute(string name, string list, string menu, ApiGroupEnum group, string[] extraApiUrls = null, string icon = null) 
        { 
            Name = name;
            List = list;
            Menu = menu;
            Group = group;
            ExtraApiUrls = extraApiUrls;
            Icon = icon;
        }

        public string Name { get; private set; }
        public string List { get; private set; }
        public string Menu { get; private set; }
        public ApiGroupEnum Group { get; private set; }
        public string[] ExtraApiUrls { get; private set; }
        public string Icon { get; private set; }
    }
}
